package com.github.operationlog.output;

import com.github.operationlog.OperationLogData;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class DefaultOperationLogOutput implements OperationLogOutput {

    @Override
    public void process(OperationLogData data) {
        if (data == null) {
            return;
        }

        log.info("{}[{}:{}:{}] {}", data.getBusinessName(), data.getTable(), data.getType(), data.getEntityId(), data.getContent());
    }
}
